package com.wangxiang.common.utils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class mapListUtils {
    public List<HashMap<String,Object>> ListUtil(HashMap<String,Object> map){
        ArrayList<HashMap<String,Object>> list = new ArrayList<>();
        map.forEach((key,value)->{
            HashMap<String, Object> map1 = new HashMap<>();
            map1.put(key,value);
            list.add(map1);
        });
        return list;
    }
}
